package com.css.fxfzypg.modules.baseData.service;

import com.alibaba.fastjson.JSONObject;
import com.css.fxfzypg.base.response.RestResponse;
import com.css.fxfzypg.modules.baseData.entity.HosPeoEntity;
import com.css.fxfzypg.modules.baseData.entity.VillageTownHosPeoEntity;
import com.css.fxfzypg.modules.baseData.queryParams.VillageTownHosPeoQueryParams;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

/**
 * @author y1fan
 * @create 2022-08-23 12:07
 */
public interface VillageTownHosPeoService {


    RestResponse saveHosPeo(VillageTownHosPeoEntity hosPeoEntity);

    VillageTownHosPeoEntity fingHosPeoById(String id);

    RestResponse updateHosPeo(VillageTownHosPeoEntity hosPeoEntity);

    JSONObject getAllHosPeoByParams(VillageTownHosPeoQueryParams queryParams, int curPage, int pageSize);

    void deleteHosPeo(String id);

    void exportExcel(HttpServletResponse response)throws IOException;

    void importExcel(MultipartFile file)throws IOException;

    VillageTownHosPeoEntity findHosPeo(String province, String city, String prefecture, String street);

    RestResponse hosPeoImportExcel(MultipartFile file)throws Exception;

    void cover(List<VillageTownHosPeoEntity> list);
}
